package it.polimi.jita.cp.block;

import java.util.ArrayList;
import java.util.List;

public class Input {

	private boolean isWithHeaders = false;
	private boolean isNeedToSaveCSVFiles = false;
	private boolean isNeedToShowGraphs = false;
	private boolean isNeedToSaveGraphs = false;
	private final List<String> csvFilePaths = new ArrayList<>();
	private final List<String> chartsFilePaths = new ArrayList<>();

	protected void setWithHeaders(boolean isWithHeaders) {
		this.isWithHeaders = isWithHeaders;
	}

	protected void setNeedToSaveCSVFiles(boolean isNeedToSaveCSVFiles) {
		this.isNeedToSaveCSVFiles = isNeedToSaveCSVFiles;
	}

	protected void setNeedToShowGraphs(boolean isNeedToShowGraphs) {
		this.isNeedToShowGraphs = isNeedToShowGraphs;
	}

	protected void setNeedToSaveGraphs(boolean isNeedToSaveGraphs) {
		this.isNeedToSaveGraphs = isNeedToSaveGraphs;
	}

	protected boolean isWithHeaders() {
		return isWithHeaders;
	}

	protected boolean addCsvFilePath(String e) {
		return csvFilePaths.add(e);
	}

	protected boolean addChartFilePath(String e) {
		return chartsFilePaths.add(e);
	}

	public boolean isNeedToSaveCSVFiles() {
		return isNeedToSaveCSVFiles;
	}

	public boolean isNeedToShowCharts() {
		return isNeedToShowGraphs;
	}

	public boolean isNeedToSaveCharts() {
		return isNeedToSaveGraphs;
	}

	protected List<String> getCsvFilePaths() {
		return csvFilePaths;
	}

}
